package com.wangxue.stock.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author wangxue
 * @ProjectName com.wangxue.stock.config
 * @Description 配置RestTemplate bean
 * @time 2022/6/1 15:54
 */
@Configuration
public class HttpClientConfig {
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
